package JAVA300.第十章IO;

import java.io.*;

/**
 * 熟悉IO步骤
 */

public class IO_Study {
    public static void main(String[] args) throws IOException {
        //创建源
        File file =new File("IOTest01.txt");
        //选择流
        InputStream is = new FileInputStream(file);
        //读写操作
       // System.out.println(is.read());//104
        System.out.println((char) is.read());//h
        System.out.println(is.read());//-1
        //释放资源
        is.close();

    }
}
